<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <include file="Public:header" />
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <include file="Public:body_top" />

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar hidden-xs">
        <div class="menu">
          <dl>
            <dt><i class="cm-order"></i>小程序</dt>
            <dd><a href="{:U('Apps/xcx_edit')}">小程序配置</a></dd>
            <dd class="active"><a href="{:U('Apps/xcx_edit')}&tpl=xcx_msg_edit">小程序模板消息</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=storage">存储配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=sms">短信配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=withdraw">提现配置</a></dd>
            <dd><a href="{:U('Mode/index')}">首页模式图标</a></dd>
            <!-- <dd><a href="{:U('Apps/xcx_edit')}&tpl=payment">结算配置</a></dd> -->
          </dl>
          <dl>
            <dt><i class="cm-advert"></i>广告管理</dt>
            <dd><a href="{:U('Adverts/index')}">广告列表</a></dd>
            <dd><a href="{:U('Adverts/add')}">新建广告</a></dd>
          </dl>
          <dl>
            <dt><i class="icon-uniE611"></i>帮助管理</dt>
            <dd><a href="{:U('Helps/index')}">帮助列表</a></dd>
            <dd><a href="{:U('Helps/add')}">新建帮助</a></dd>
          </dl>
        </div>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="main-hd">
          <h5>{$title}</h5>
          <p class="help-block"></p>
        </div>

        <div class="main-bd">
          <div class="form-box">
            <form class="form-horizontal" method="post" action="{:U('Apps/xcx_update')}">
              <div class="form-group">
                <label class="col-sm-2 control-label">商户审核消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="shop_audit_template_id" id="shop_audit_template_id" value="{$app.shop_audit_template_id}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">订单确认消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="confirm_order_template_id" value="{$app.confirm_order_template_id}">
                </div>
              </div>

              <div class="form-group">
                <label class="col-sm-2 control-label">退款失败消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="refund_reject_template_id" id="refund_reject_template_id" value="{$app.refund_reject_template_id}">
                </div>
              </div>

              <div class="form-group">
                <label class="col-sm-2 control-label">发货通知消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="express_order_template_id" id="express_order_template_id" value="{$app.express_order_template_id}">
                </div>
              </div>

              <div class="form-group">
                <label class="col-sm-2 control-label">打款成功消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="pay_to_shop_template_id" id="pay_to_shop_template_id" value="{$app.pay_to_shop_template_id}">
                </div>
              </div>

              <div class="form-group">
                <label class="col-sm-2 control-label">打款拒绝消息模板</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control" name="withdraw_reject_template_id" id="withdraw_reject_template_id" value="{$app.withdraw_reject_template_id}">
                </div>
              </div>

              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <input type="hidden" name="id" value="{$app.id}">
                  <input type="hidden" name="tpl" value="{$tpl}">
                  <input type="submit" class="btn btn-primary" value="提交">
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>